<?php
include_once("../tools/DBInterface.class.php");
include_once("../lib/Smarty/Smarty.class.php");

$smarty = new Smarty();
$dbinterface = new DBInterface();

switch($_GET['action'])
{
    case 1: //When the section report is called from the menu
        $smarty->assign("delegations",$dbinterface->exec_select(array('del_id','del_name'),'delegation'));
        $smarty->display("Report/report_main.tpl");
    break;
    
    case 2: //When the user press the tab graphics
        $smarty->assign("delegations",$dbinterface->exec_select(array('del_id','del_name'),'delegation'));
        $smarty->display("Report/report_graphics.tpl");
    break;
    
    case 3: //When the user press the tab pdfs
        $smarty->assign("delegations",$dbinterface->exec_select(array('del_id','del_name'),'delegation'));
        $smarty->display("Report/report_pdfs.tpl");
    break;
}


?>